﻿<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
<script type="text/javascript" src="../lib/html5.js"></script>
<script type="text/javascript" src="../lib/respond.min.js"></script>
<script type="text/javascript" src="../lib/PIE_IE678.js"></script>
<![endif]-->
    <link href="../lib/layui/css/layui.css" rel="stylesheet" type="text/css" />
    <link href="../css/H-ui.min.css" rel="stylesheet" type="text/css" />
    <link href="../css/H-ui.admin.css" rel="stylesheet" type="text/css" />
    <link href="../lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
    <link href="../lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
    <!--[if IE 6]>
<script type="text/javascript" src="../lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
    <title>车辆信息</title>
</head>
<body>
    <div class="pd-20">
        <form id="itemEdit" name="itemEdit" method="post" action="../ashx/spui.ashx" class="form form-horizontal">
            <input type="hidden" class="actionValue" id="editAction" name="action" value="add" />
            <input type="hidden" id="id" name="id" />
            <input type="hidden" id="tablename" name="tablename" value="" />
            <input type="hidden" id="tablemidname" name="tablemidname" value="" />
            <input type="hidden" id="ftype" name="ftype" value="16" />
            <input type="hidden" id="fmaintype" name="fmaintype" value="16" />
            <input type="hidden" id="ftypename" name="ftypename" value="车辆信息" />
            <input type="hidden" id="dataneedtouser" name="dataneedtouser" value="1" /><!--是否要包含通用数据必归属处理-->
            <input type="hidden" id="ywcheckonly" name="ywcheckonly" value="ftype,fmaintype,fdatabranchid,ffv1#当前车辆已存在!" /><!--唯一性检查 所用字段要在表单中-->
            <div class="row cl">
                <label class="form-label col-1"><span class="c-red">*</span>车牌：</label>
                <div class="formControls col-2">
                    <input type="text" class="input-text" name="ffv1" id="ffv1" nullmsg="不能为空" datatype="*1-10" placeholder="1~10个字符" />
                </div>
                <div class="col-1"></div>
                <label class="form-label col-1"><span class="c-red">*</span>说明：</label>
                <div class="formControls col-2">
                    <input type="text" class="input-text" name="ffv2" id="ffv2" />
                </div>
                <div class="col-1"></div>
            </div>
            <div class="row cl">
                <label class="form-label col-1"><span class="c-red">*</span>负责人：</label>
                <div class="formControls col-2">
                    <input type="text" class="input-text" name="ffv3" id="ffv3" readonly="readonly" placeholder="右边选择或搜索选择" />
                    <input type="hidden" id="ffv4" name="ffv4" />
                </div>
                <div class="col-3 layui-form">
                    <select name="inoutusernamesel" id='inoutusernamesel' lay-filter="testselect" lay-verify="required" lay-search="">
                        <option value="">直接选择或搜索选择</option>
                    </select>
                </div>
            </div>

            <div class="row cl">
                <label class="form-label col-1">运输量(t)：</label>
                <div class="formControls col-2">
                    <input type="text" class="input-text" name="fnv1" id="fnv1" placeholder="数值" value="1"   datatype="/^-?[1-9]+(\.\d+)?$|^-?0(\.\d+)?$|^-?[1-9]+[0-9]*(\.\d+)?$/" />
                </div>
                <div class="col-1"></div>

            </div>
            <div class="row cl">
                <div class="col-6 col-offset-4">
                    <button class="btn btn-primary radius" type="submit" id="btsub1">提交</button>&nbsp;&nbsp;
				<button class="btn btn-secondary radius" type="button" id="btn_reset">重置</button>&nbsp;&nbsp;
				<button onclick="layer_close();" class="btn btn-default radius" type="button">返回</button>
                </div>
            </div>
        </form>
    </div>
    <script src="../hcjsui/Scripts/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../lib/layui/layui.js"></script>
    <script type="text/javascript" src="../lib/icheck/jquery.icheck.min.js"></script>
    <script type="text/javascript" src="../lib/Validform/5.3.2/Validform.js"></script>
    <script type="text/javascript" src="../lib/layer/1.9.3/layer.js"></script>
    <script src="../hcjsui/js/_Define.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/hcui.js"></script>
    <script type="text/javascript" src="../js/hcui_au.js"></script>
    <script type="text/javascript" src="../lib/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript">
        var uiform = null;

        //加载处理
        function loadin() {
            layui.use(['form'], function () {
                uiform = layui.form();
                uiform.on('select(testselect)', function (data) {
                    $('#ffv4').val(data.value);
                    $('#ffv3').val($("#inoutusernamesel").find("option:selected").text());
                    //加载明细
                    //var objget = hcgetJsonObjById(inoutusernameselObj, data.value);
                    //$('#finoutuserteluser').val(objget.username);
                    //$('#finoutusertel').val(objget.tel);
                    //$('#finoutuseraddress').val(objget.address);
                });
            });
            //本页面 
            spsetBase("yw_baseinfo", "id", "yw_baseinfo as T", "*", "#tablelist", "baseinfo1", "种植物", "baseinfo1");
            hcdosel("empid  as id,concat(depname,'-',empname) as name,empname as username,mobile as  tel,depname as address", "view_user", "branchid='" + HCUser.HCUorg + "'", "", "", "id", function (data) {
                SetSelectWithObjIdName("#inoutusernamesel", data);
                //inoutusernameselObj = JSON.parse(data);
                uiform.render('select');
            });
        }
    </script>
</body>
</html>
